Enterprise Objects Framework Release 1.1 Copyright ã1995 by NeXT Computer, Inc.  All Rights Reserved.

EOKeyValueCodingEONull
(informal protocol)

Category Of:	NSObject

Declared In:	eoaccess/EOKeyValueCoding.h

Category Description

The single method comprising the EOKeyValueCodingEONull category allows you to specify just what should happen when takeValuesFromDictionary: attempts to assign EONull to an enterprise object property that requires a C scalar type (such as an int or a float). If this method is not implemented, takeValuesFromDictionary: will raise. 

One possible implementation is to call takeValuesFromDictionary: recursively with a special value object that will return the desired values to assign for the methods floatValue, intValue, unsignedIntValue, and so forth.

Instance Methods

unableToSetNullForKey:

- (void)unableToSetNullForKey:(NSString *)key

takeValuesFromDictionary: invokes this method when, during an attempt to assign EONull to the enterprise object property corresponding to key, it discovers that the property requires a C scalar type (such as an int or a float). By default, this method generates an NSInternalInconsistencyException; to define alternate behaviorÐ such as assigning a value of zero or MAXINT to the property, for instanceÐyou must override the default implementation in your custom classes.